home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 032a / acctxt2.zip / GC0165.TXT < prev    next >
Text File  |  1992-06-29  |  90KB  |  2,276 lines

  1. ======================================================================
  2.     Microsoft Product Support Services Application Note (Text File)
  3.              GC0165: RICH-TEXT FORMAT (RTF) SPECIFICATION
  4. ======================================================================
  5.                                                    Revision Date: 6/92
  6.                                                       No Disk Included
  7.  
  8. The following information applies to using RTF version 1.0 with
  9. Microsoft MS-DOS(R), Windows(TM), OS/2(R), and Apple(R) Macintosh(R)
  10. Applications.
  11.  
  12.  --------------------------------------------------------------------
  13. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
  14. | ACCOMPANY THIS DOCUMENT (collectively referred to as an            |
  15. | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      |
  16. | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO    |
  17. | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A     |
  18. | PARTICULAR PURPOSE. The user assumes the entire risk as to the     |
  19. | accuracy and the use of this Application Note. This Application    |
  20. | Note may be copied and distributed subject to the following        |
  21. | conditions: 1) All text must be copied without modification and    |
  22. | all pages must be included; 2) If software is included, all files  |
  23. | on the disk(s) must be copied without modification [the MS-DOS(R)  |
  24. | utility DISKCOPY is appropriate for this purpose]; 3) All          |
  25. | components of this Application Note must be distributed together;  |
  26. | and 4) This Application Note may not be distributed for profit.    |
  27. |                                                                    |
  28. | Copyright (c) 1989-1992 Microsoft Corporation. All Rights Reserved.|
  29. | Microsoft and MS-DOS are registered trademarks and Windows is a    |
  30. | trademark of Microsoft Corporation. OS/2 is a registered trademark |
  31. | licensed to Microsoft Corporation. Apple, Macintosh, and TrueType  |
  32. | are registered trademarks and QuickDraw is a trademark of Apple    |
  33. | Computer, Inc. IBM and Personal System/2 are registered trademarks |
  34. | of International Business Machines Corporation. PostScript is a    |
  35. | registered trademark of Adobe Systems, Inc. Times Roman, Palatino, |
  36. | and Helvetica are registered trademarks of Linotype AG and/or its  |
  37. | subsidiaries. Swiss is a trademark of Bitstream, Inc. ITC Zapf     |
  38. | Chancery is a registered trademark of the International Typeface   |
  39. | Corporation. MathType is a trademark of Design Science, Inc. This  |
  40. | document was created using Microsoft Word for Windows.             |
  41.  --------------------------------------------------------------------
  42.  
  43.                                    
  44.                                    
  45.                                OVERVIEW
  46.                                ========
  47.                                    
  48. The rich-text format (RTF) standard is a method of encoding formatted
  49. text and graphics for easy transfer between MS-DOS, Windows, OS/2, and
  50. Apple Macintosh applications.
  51.  
  52. The RTF standard provides a format for text and graphics interchange
  53. that can be used with different output devices, operating
  54. environments, and operating systems. RTF uses the ANSI, PC-8,
  55. Macintosh, or IBM PC character set to control the representation and
  56. formatting of a document, both on the screen and in print. With the
  57. RTF standard, you can transfer documents created under different
  58. operating systems and with different software applications among those
  59. operating systems and applications.
  60.  
  61. Software that takes a formatted file and turns it into an RTF file is
  62. called a "writer." An RTF writer separates the applicationÆs control
  63. information from the actual text and writes a new file containing the
  64. text and the RTF groups associated with that text. Software that
  65. translates an RTF file into a formatted file is called a "reader."
  66.                                    
  67.                                    
  68.                               RTF SYNTAX
  69.                               ==========
  70.                                    
  71. An RTF file consists of unformatted text, control words, control
  72. symbols, and groups. For ease of transport, a standard RTF file can
  73. consist of only 7-bit ASCII characters. However, Word for Windows uses
  74. 8-bit characters in the RTF stream given to converter DLLs.
  75.  
  76. A "control word" is a specially formatted command that RTF uses to
  77. mark printer control codes and information that applications use to
  78. manage documents. A control word takes the following form:
  79.  
  80.   \<LetterSequence>[<NumericParameter>]<delimiter>
  81.  
  82. For example:
  83.  
  84.    A   B   C
  85.    |   |   |
  86.    | ----- |
  87.    \ r t f 1
  88.  
  89.    A  A backslash begins each control word
  90.    B  Letter sequence
  91.    C  Numeric parameter
  92.  
  93. The "Letter Sequence" is made up of uppercase or lowercase alphabetic
  94. characters between A and Z inclusive.
  95.  
  96. The "Numeric Parameter" begins with a digit or a minus sign (-). The
  97. range of the values for the numeric parameter is -32,767 through
  98. 32,767. However, Microsoft Word for Windows, Word for OS/2, and Word
  99. for the Macintosh restrict the range to -31,680 through 31,680. If a
  100. numeric parameter immediately follows the control word, this parameter
  101. becomes part of the control word and the delimiter follows the
  102. parameter.
  103.  
  104. The "delimiter" marks the end of an RTF control word or symbol. A
  105. delimiter can be one of the following:
  106.  
  107.  - A space. If a space delimits a control word, the space does not
  108.    appear in the document. Any characters following the delimiter,
  109.    including spaces, do appear in the document. For this reason, you
  110.    should use spaces only where necessary; do not use spaces merely to
  111.    break up RTF code.
  112.  
  113.  - A backslash (\), opening brace ({), or closing brace (}). These
  114.    characters are used to mark the beginning of a new control word or
  115.    symbol, the beginning of a group, and end of a group, respectively.
  116.    More information about control symbols and groups is provided later
  117.    in this document.
  118.  
  119.  - Any character other than a letter or a digit. In this case, the
  120.    character terminates the control word but is not actually part of
  121.    the control word. The character is considered part of the document
  122.    text.
  123.  
  124. Some control words govern properties that have only two states (for
  125. example, bold, which is either turned on or turned off). When such a
  126. control word has no parameter or has a nonzero parameter, it is
  127. assumed that the control word turns on the property. When such a
  128. control word has a parameter of 0 (zero), it is assumed that the
  129. control word turns off the property. For example, \b turns on bold,
  130. whereas \b0 turns off bold.
  131.  
  132. A "control symbol" consists of a backslash followed by a single,
  133. nonalphabetic character. For example, \~ represents a nonbreaking
  134. space. Control symbols take no delimiters.
  135.  
  136. A "group" consists of text and control words or control symbols
  137. enclosed in braces ({ }). The opening brace indicates the start of the
  138. group and the closing brace indicates the end of the group. Each group
  139. specifies the text affected by the group and the different attributes
  140. of that text. The RTF file can also include groups for fonts, styles,
  141. screen color, pictures, footnotes, annotations, headers and footers,
  142. summary information, fields, and bookmarks, as well as document-,
  143. section-, paragraph-, and character-formatting properties. If the
  144. font, style, screen color, and summary information groups and document
  145. formatting properties are included, they must precede the first plain-
  146. text character in the document. These groups form the RTF file header.
  147. If the group for fonts is included, it should precede the group for
  148. styles. If any group is not used, it can be omitted. The groups are
  149. discussed in the following sections.
  150.  
  151. Certain groups, referred to as "destinations," mark the beginning of a
  152. collection of related text that could appear at another position, or
  153. destination, within the document. Destinations can also be text that
  154. is used but should not appear within the document at all. Destinations
  155. are sometimes distinguished from other groups by a \* control symbol
  156. immediately following the opening brace of the group. The \* is
  157. followed by a control word that defines the type of the destination.
  158. This control symbol identifies destinations whose related text should
  159. be ignored if the RTF reader does not recognize the destination. (RTF
  160. writers should follow the convention of using this control symbol when
  161. adding new control words.) Destinations whose related text should be
  162. inserted into the document even if the RTF reader does not recognize
  163. the destination should not use \*. An example of a destination is the
  164. \footnote group, where the footnote text follows the control word.
  165.  
  166. Formatting specified within a group affects only the text within that
  167. group. Generally, text within a group inherits the formatting of the
  168. text in the preceding group. However, Microsoft implementations of RTF
  169. assume that the footnote, header and footer, and annotation groups
  170. (described later in this document) do not inherit the formatting of
  171. the preceding text. Therefore, to ensure that these groups are always
  172. formatted correctly, you should set the formatting within these groups
  173. to the default with the \sectd, \pard, and \plain control words, and
  174. then add any desired formatting.
  175.  
  176. The control words, control symbols, and braces constitute control
  177. information. All other characters in the file are plain text. The
  178. following is an example of plain text that does not exist within a
  179. group:
  180.  
  181.    ...
  182.    \linex0endnhere \pard\plain \fs20 This is plain text.
  183.    ...
  184.  
  185. The phrase, "This is plain text" is not part of a group and is treated
  186. as document text.
  187.  
  188. As previously mentioned, the backslash (\) and braces ({ }) have
  189. special meaning in RTF. To use these characters as text, precede them
  190. with a backslash, as follows:
  191.  
  192.   \\
  193.   \{
  194.   \}
  195.                                    
  196.                                    
  197.                      CONVENTIONS OF AN RTF READER
  198.                      ============================
  199.                                    
  200. The reader of an RTF stream is concerned with the following:
  201.  
  202.  - Separating control information from plain text
  203.  - Acting on control information
  204.  - Collecting and properly inserting text into the document, as
  205.    directed by the state of the current group
  206.  
  207. The process of acting on control information is designed to be
  208. relatively simple. Some control information only contributes special
  209. characters to the plain text stream. Other information changes the
  210. "program state," which includes properties of the document as a whole,
  211. or changes a collection of "group states," which applies to parts of
  212. the document.
  213.  
  214. As previously mentioned, a group state can specify the following:
  215.   
  216.  - The "destination," or part of the document that the plain text is
  217.    constructing
  218.  - Character formatting properties, such as bold or italic
  219.  - Paragraph formatting properties, such as justified or centered
  220.  - Section formatting properties, such as the number of columns
  221.  - Table formatting properties, which define the number of cells and
  222.    dimensions of a table row
  223.  
  224. An RTF reader performs the following procedure:
  225.  
  226.    1. The reader reads the next character.
  227.  
  228.    2. If the next character is:
  229.    
  230.        - An opening brace, the reader stores the current state of the
  231.          document on the stack.
  232.       
  233.        - A closing brace, the reader retrieves the current state of
  234.          the document from the stack.
  235.       
  236.        - A backslash, the reader marks the beginning of an RTF
  237.          control. The reader collects the control word or control
  238.          symbol and its parameter, if any, and carries out the action
  239.          prescribed for that control. The meaning of each of the
  240.          controls is discussed in the section "Contents of an RTF
  241.          File" in this document. The read pointer is left on the next
  242.          nonspace delimiter following the control.
  243.       
  244.        - Anything other than an opening brace, closing brace, or
  245.          backslash, the reader assumes that the character is plain
  246.          text and writes the character to the current destination
  247.          using the current formatting properties.
  248.       
  249.    3. The reader then reads the next character.
  250.  
  251. If the RTF reader does not recognize a particular control word or
  252. control symbol, the reader ignores it. When the reader encounters a
  253. control word or control symbol preceded by an opening brace, the
  254. reader recognizes the control as part of a group. The reader saves the
  255. current state on the stack but does not change the state. When the
  256. reader encounters a closing brace, the reader retrieves the current
  257. state from the stack, thereby resetting the current state. If the \*
  258. control symbol precedes the unknown control word, \* defines a
  259. destination group and is preceded by an opening brace. The RTF reader
  260. will discard all text and subgroups up to and including the brace that
  261. closes this group.
  262.  
  263. For control words or control symbols recognized by the RTF reader, the
  264. possible actions are as follows:
  265.  
  266.   Action           Description
  267.   ------           -----------
  268.  
  269.   Change           The RTF reader changes the destination to
  270.   destination      the destination described in the table
  271.                    entry. Destination changes are legal only
  272.                    immediately after an opening brace. (Other
  273.                    restrictions may also apply; for example,
  274.                    footnotes cannot be nested.) Many
  275.                    destination changes imply that the current
  276.                    property settings will be reset to their
  277.                    default settings. Examples of control
  278.                    words that change the destination are
  279.                    \footnote, \header, \footer, \pict, \info,
  280.                    \fonttbl, \stylesheet, and \colortbl.
  281.  
  282.   Change           The RTF reader changes the property as
  283.   formatting       described in the table entry. The entry
  284.   property         specifies whether a parameter is required.
  285.  
  286.   Insert special   The reader inserts into the document the
  287.   character        character code or codes described in the
  288.                    table entry.
  289.  
  290.   Insert special   The reader inserts into the document the
  291.   character and    character code or codes described in the
  292.   perform action   table entry and performs whatever other
  293.                    action the entry specifies. For example,
  294.                    when Microsoft Word interprets \par, Word
  295.                    inserts a paragraph mark in the document,
  296.                    along with the paragraph properties
  297.                    belonging to that paragraph mark.
  298.                                    
  299.                                    
  300.                         CONTENTS OF AN RTF FILE
  301.                         =======================
  302.                                    
  303. An RTF file can contain combinations of the following elements:
  304.  
  305.  
  306. THE RTF VERSION
  307. ===============
  308.  
  309. An entire RTF file is considered a group and must be enclosed in
  310. braces. The control word \rtf<N> must follow the opening brace. The
  311. numeric parameter <N> identifies the version of the RTF standard used.
  312. The RTF standard described in this document is version 1.0.
  313.  
  314.  
  315. THE CHARACTER SET
  316. =================
  317.  
  318. After specifying the RTF version, you must declare the character set.
  319. The control word for the character set must precede any plain text or
  320. any table control words. The RTF specification currently supports the
  321. following character sets:
  322.  
  323.     Control Word   Character Set
  324.     ------------   -------------
  325.                    
  326.     \ansi          ANSI (the default)
  327.  
  328.     \mac           Apple Macintosh
  329.  
  330.     \pc            IBM(R) PC Code Page 437
  331.  
  332.     \pca           IBM PC Code Page 850, used by IBM Personal
  333.                    System/2(R) (not implemented in version 1.0 of
  334.                    Microsoft Word for OS/2)
  335.  
  336. The Font Table
  337. --------------
  338.  
  339. This group begins with the control word \fonttbl and contains
  340. descriptions of fonts. All fonts available to the RTF writer can be
  341. included in the font table, even if the document doesnÆt use all the
  342. fonts.
  343.  
  344. A font is defined by a font number, a font family, and a font name as
  345. shown in the following example:
  346.  
  347.        A     B     C      D
  348.        |     |     |      |
  349.     -------- | ------- ---------
  350.    {\fonttbl\f0\froman Tms Rmn;}...
  351.  
  352.    A  Control word
  353.    B  Font number
  354.    C  Font family
  355.    D  Font name
  356.  
  357. Semicolons separate one font from the next. The font numbers represent
  358. the full font definitions in the group and vary with each document.
  359. The font families are listed below:
  360.  
  361.     Control Word   Font Family
  362.     ------------   -----------
  363.                    
  364.     \fnil          Unknown or default fonts (the default)
  365.  
  366.     \fRoman        Roman, proportionally spaced serif fonts (for
  367.                    example, Times Roman(R) and Palatino(R))
  368.  
  369.     \fswiss        Swiss(TM), proportionally spaced sans serif fonts
  370.                    (for example, Swiss Helvetica(R))
  371.  
  372.     \fmodern       Fixed-pitch serif and sans serif fonts (for
  373.                    example, Courier and Pica)
  374.  
  375.     \fscript       Script fonts (for example, Cursive)
  376.  
  377.     \fdecor        Decorative fonts (for example, Old English and
  378.                    ITC Zapf Chancery(R))
  379.  
  380.     \ftech         Technical, symbol, and mathematical fonts (for
  381.                    example, Symbol)
  382.  
  383. If an RTF file uses a default font, the default font number is
  384. specified with the \deff<N> control word, which must precede the font-
  385. table group. The RTF writer supplies the default font number used in
  386. the creation of the document as the numeric argument <N>. The RTF
  387. reader then translates this number through the font table into the
  388. most similar font available on the readerÆs system.
  389.  
  390.  
  391. THE STYLE SHEET
  392. ===============
  393.  
  394. The style sheet group begins with the control word \stylesheet. This
  395. group contains definitions and descriptions of the various styles used
  396. in the document. The style sheet is declared only once, before any
  397. document text. All styles in the documentÆs style sheet can be
  398. included, even if not all the styles are used.
  399.  
  400.     Control Word   Meaning
  401.     ------------   -------
  402.                    
  403.     \sbasedon<N>   Defines the number of the style on which the
  404.                    current style is based. Word for Windows defaults
  405.                    to the Normal style--style number 222--if
  406.                    \sbasedon is omitted.
  407.  
  408.     \snext<N>      For paragraph styles, \snext defines the style
  409.                    automatically assigned to a paragraph created
  410.                    following the paragraph with the current style.
  411.                    If \snext omitted, the next paragraph is given
  412.                    the same style as the current paragraph.
  413.  
  414.     \keycode       Specified within the description of a style in
  415.                    the style sheet in the RTF header. The syntax for
  416.                    this group is {\*\keycode <Keys>} where <Keys>
  417.                    are the characters used in the key code. For
  418.                    example, a Normal style may be defined {\s0
  419.                    {\*\keycode \shift\ctrl n}Normal;} within the RTF
  420.                    style sheet. See the "Special Characters" control
  421.                    words for the characters outside of the
  422.                    alphanumeric range that can be used.
  423.  
  424. An example of an RTF style sheet and styles follows:
  425.   
  426.           ...
  427.        --
  428.       |   {\stylesheet{\fs20 \sbasedon222\snext10{keycode \shift...}
  429.   A---|   {\s1 \ar \fs20 \sbasedon0\snext1 FLUSHRIGHT}{\s2\fi...}
  430.       |   \sbasedon0snext2 IND:}}
  431.        --
  432.           ...
  433.        --
  434.       |  \widowctrl\ftnbj\ftnrestart \sectd \linex0\endnhere
  435.       |  \pard\plain \fs20 This is Normal style.
  436.   B---|  \par \pard\plain \s1
  437.       |  This is right justified. I call this style FLUSHRIGHT.
  438.       |  \par \pard\plain \s2
  439.       |  This is an indented paragraph. I call this style IND...
  440.        --
  441.          \par}
  442.          ...
  443.   
  444.   A  Style sheet
  445.   B  Styles applied to text
  446.   
  447.   This is Normal Style.
  448.                 This is right justified. I call this style FLUSHRIGHT.
  449.   This is an indented paragraph. I call this style IND. It produces
  450.         a hanging indent.
  451.   
  452.   
  453. In this example, PostScript(R) is declared but not used. Some of the
  454. control words in this example are discussed in the following sections.
  455.  
  456.  
  457. THE COLOR TABLE
  458. ===============
  459.  
  460. Screen colors, character colors, and other color information are
  461. contained in the color table group. The control word \colortbl begins
  462. this group. Additional control words for red, green, and blue and the
  463. foreground and background colors then use parameter values (0-255)
  464. corresponding to the color indexes used by Microsoft Windows to define
  465. the amount of red, green, and blue that makes up a color. For more
  466. information on color setup, see your Windows documentation.
  467.  
  468. The following are valid control words for this group:
  469.  
  470.    Control Word   Meaning
  471.    ------------   -------
  472.                   
  473.    \red<N>        Red index
  474.    \green<N>      Green index
  475.    \blue<N>       Blue index
  476.    \cf<N>         Foreground color (the default is 0)
  477.    \cb<N>         Background color (the default is 0)
  478.  
  479. Each definition must be delimited by a semicolon, even if the
  480. definition is omitted. If a color definition is omitted, the RTF
  481. reader uses its default color. In the example that follows, three
  482. colors are defined. The first color is omitted, as shown by the
  483. semicolon following the \colortbl control word.
  484.  
  485.   ...
  486.   {\colortbl;\red0\green0\blue0;\red0\green0\blue255;}
  487.   ...
  488.  
  489. The following example defines a block of text in color (where
  490. supported). Note that the cf/cb index is the index of an entry in the
  491. color table, which represents a red/green/blue color combination.
  492.  
  493.   ...
  494.   {\f1\cb1\cf2 This is colored text. The background is color
  495.   1 and the foreground is color 2.
  496.   ...
  497.   
  498. If the file is translated for software that does not display color,
  499. the reader ignores the color table group.
  500.  
  501.  
  502. PICTURES
  503. ========
  504.  
  505. An RTF file can include picture files created with other applications.
  506. These files are in hexadecimal (the default) or binary format. The
  507. control word \pict begins this group. Control words that define and
  508. describe the picture parameters follow the \pict control word. These
  509. control words are listed in the following table (some measurements in
  510. this table are in twips; a twip is one-twentieth of a point):
  511.  
  512.   General
  513.   --------------------------------------------------------------------
  514.  
  515.    Control Word    Meaning
  516.    ------------    -------
  517.                    
  518.    \macpict        The source file of the picture is QuickDraw(TM).
  519.  
  520.    \pmmetafile<N>  The source file of the picture is an OS/2
  521.                    metafile; the <N> argument identifies the
  522.                    metafile type.
  523.  
  524.    \wmetafile<N>   The source file of the picture is a Windows
  525.                    metafile; the <N> argument identifies the
  526.                    metafile type (the default is 1, meaning the
  527.                    metafile type is MM_TEXT).
  528.  
  529.    \dibitmap<N>    The source file of the picture is a device
  530.                    independent bitmap; the <N> argument identifies
  531.                    the bitmap type (the default is 0).
  532.  
  533.    \wbitmap<N>     The source file of the picture is a bitmap; the
  534.                    <N> argument identifies the bitmap type (the
  535.                    default is 0, meaning that the bitmap is a
  536.                    logical bitmap).
  537.  
  538.   Bitmap Information
  539.   --------------------------------------------------------------------
  540.  
  541.    Control Word           Meaning
  542.    ------------           -------
  543.                           
  544.    \wbmbitspixel<N>       The number of bitmap bits per pixel (the default
  545.                           is 1).
  546.    \wbmplanes<N>          The number of bitmap planes (the default is 1).
  547.    \wbmwidthbytes<N>      The bitmap width in bytes.
  548.   
  549.   Picture Size, Scaling, and Cropping
  550.   --------------------------------------------------------------------
  551.   
  552.    Control Word    Meaning
  553.    ------------    -------
  554.                    
  555.    \picw<N>        The <xExt> field if the picture is a metafile;
  556.                    the picture width in pixels if the picture is a
  557.                    bitmap or is from QuickDraw.
  558.  
  559.    \pich<N>        The <yExt> field if the picture is a metafile;
  560.                    the picture height in pixels if the picture is a
  561.                    bitmap or from QuickDraw.
  562.  
  563.    \picwgoal<N>    The desired width of the picture in twips.
  564.  
  565.    \pichgoal<N>    The desired height of the picture in twips.
  566.  
  567.    \picscalex<N>   The horizontal scaling value; the <N> argument is
  568.                    a value representing a percentage (the default is
  569.                    100).
  570.  
  571.    \picscaley<N>   The vertical scaling value; the <N> argument is a
  572.                    value representing a percentage (the default is
  573.                    100).
  574.  
  575.    \picscaled      Scales the picture to fit within the specified
  576.                    frame; used only with \macpict pictures.
  577.  
  578.    \piccropt<N>    The top cropping value in twips; a positive value
  579.                    crops toward the center of the picture; a
  580.                    negative value crops away from the center, adding
  581.                    a space border around the picture (the default is
  582.                    0).
  583.  
  584.    \piccropb<N>    The bottom cropping value in twips; a positive
  585.                    value crops toward the center of the picture; a
  586.                    negative value crops away from the center, adding
  587.                    a space border around the picture (the default is
  588.                    0).
  589.  
  590.    \piccropl<N>    The left cropping value in twips; a positive
  591.                    value crops toward the center of the picture; a
  592.                    negative value crops away from the center, adding
  593.                    a space border around the picture (the default is
  594.                    0).
  595.  
  596.    \piccropr<N>    The right cropping value in twips; a positive
  597.                    value crops toward the center of the picture; a
  598.                    negative value crops away from the center, adding
  599.                    a space border around the picture (the default is
  600.                    0).
  601.   
  602.   Picture Border
  603.   --------------------------------------------------------------------
  604.   
  605.    Control Word    Meaning
  606.    ------------    --------
  607.                    
  608.    \brdrs          A single picture border.
  609.    \brdrdb         A double picture border.
  610.    \brdrth         A thick picture border.
  611.    \brdrsh         A shadow picture border.
  612.    \brdrdot        A dotted picture border.
  613.    \brdrhair       A hairline picture border.
  614.  
  615.    \brdrw<N>       <N> is the width in twips of the picture border
  616.                    line. This control should follow the picture
  617.                    border controls \brdrt, \brdrr, \brdrb, and
  618.                    \brdrl.
  619.  
  620.    \brdrcf<N>      <N> is the color of the picture border from the
  621.                    color table in the RTF header. This control
  622.                    should follow the picture border controls \brdrt,
  623.                    \brdrr, \brdrb, and \brdrl.
  624.   
  625.   Picture Background Shading
  626.   --------------------------------------------------------------------
  627.   
  628.    Control Word    Meaning
  629.    ------------    -------
  630.                    
  631.    \shading<N>     <N> is the shading of the picture in hundredths
  632.                    of a percent.
  633.  
  634.    \bghoriz        Specifies a horizontal background pattern for the
  635.                    picture.
  636.  
  637.    \bgvert         Specifies a vertical background pattern for the
  638.                    picture.
  639.  
  640.    \bgfdiag        Specifies a forward diagonal background pattern
  641.                    for the picture (\\\\).
  642.  
  643.    \bgbdiag        Specifies a backward diagonal background pattern
  644.                    for the picture (////).
  645.  
  646.    \bgcross        Specifies a cross-hatched background pattern for
  647.                    the picture.
  648.  
  649.    \bgdcross       Specifies a diagonal cross-hatched background
  650.                    pattern for the picture.
  651.  
  652.    \bgdkhoriz      Specifies a dark horizontal background pattern
  653.                    for the picture.
  654.  
  655.    \bgdkvert       Specifies a dark vertical background pattern for
  656.                    the picture.
  657.  
  658.    \bgdkfdiag      Specifies a dark forward diagonal background
  659.                    pattern for the picture (\\\\).
  660.  
  661.    \bgdkbdiag      Specifies a dark backward diagonal background
  662.                    pattern for the picture (////).
  663.  
  664.    \bgdkcross      Specifies a dark cross-hatched background pattern
  665.                    for the picture.
  666.  
  667.    \bgdkdcross     Specifies a dark diagonal cross-hatched
  668.                    background pattern for the picture.
  669.  
  670.    \cfpat<N>       <N> is the line color of the background pattern.
  671.  
  672.    \cbpat<N>       <N> is the background color of the background
  673.                    pattern.
  674.   
  675.   Picture Data
  676.   --------------------------------------------------------------------
  677.   
  678.    Control Word    Meaning
  679.    ------------    -------
  680.                    
  681.    \bin<N>         The picture is in binary format; the numeric
  682.                    parameter <N> is the number of bytes that follow.
  683.  
  684. The \wbitmap control word is optional; if neither \wmetafile nor
  685. \macpict is specified, the picture is assumed to be a Windows bitmap.
  686. If \wmetafile is specified, the <N> argument can be one of the
  687. following types:
  688.  
  689.    Type            <N> Argument
  690.    ----            -------------
  691.                    
  692.    MM_TEXT         1
  693.    MM_LOMETRIC     2
  694.    MM_HIMETRIC     3
  695.    MM_LOENGLISH    4
  696.    MM_HIENGLISH    5
  697.    MM_TWIPS        6
  698.    MM_ISOTROPIC    7
  699.    MM_ANISOTROPIC  8
  700.  
  701. If \pmmetafile is specified, the <N> argument can be one of the
  702. following types:
  703.  
  704.   Type             <N> Argument
  705.   ----             -------------
  706.                    
  707.   PU_ARBITRARY     4
  708.   PU_PELS          8
  709.   PU_LOMETRIC      12
  710.   PU_HIMETRIC      16
  711.   PU_LOENGLISH     20
  712.   PU_HIENGLISH     24
  713.   PU_TWIPS         28
  714.  
  715. Be careful with spaces following control words when dealing with
  716. pictures in binary format. When reading files, RTF considers the first
  717. space after a control word the delimiter and subsequent spaces part of
  718. the document text. Therefore, any extra spaces are attached to the
  719. picture, with unpredictable results.
  720.  
  721. RTF writers should not use the carriage-return/linefeed (CRLF)
  722. combination to break up pictures in binary format. If they do, the
  723. CRLF is treated as literal text and considered part of the picture
  724. data.
  725.  
  726. The picture in hexadecimal or binary format follows the picture-group
  727. control words. The following example illustrates the group format:
  728.  
  729.                   A       B      C           D          E
  730.                   |       |      |           |          |
  731.               -------- ------- ------ ------------- ----------
  732.        {\pict\wbitmap0\picw170\pich77\wbmbitspixel1\wbmplanes1
  733.   
  734.                F             G
  735.                |             |
  736.         --------------- -----------
  737.        \wmbwidthbytes22\picwgoal505
  738.   
  739.   H--- \pichgoal221
  740.   I--- \picscalex172
  741.   J--- \picscaley172
  742.      - 49f2000000000273023d1101a030
  743.      | 3901000a000000000273023d98
  744.      | 0048000200000275
  745.      | 02040000200010275023e000000000
  746.   K--| 273023d000002b90002b90002
  747.      | b90002b90002b9
  748.      | 0002b90002b90002b90002b90002b90002
  749.      | b92222b90002b90002b90
  750.      | 002b90002b9
  751.      - 0002b90002b90002b90002b9000
  752.        ...
  753.   A  Source
  754.   B  Width
  755.   C  Height
  756.   D  Bits per pixel
  757.   E  Bitmap planes
  758.   F  Width of picture in bytes
  759.   G  Desired picture width
  760.   H  Desired picture height
  761.   I  Horizontal scaling value
  762.   J  Vertical scaling value
  763.   K  Hexadecimal data
  764.   
  765.        NOTE: The controls \pichgoal, \picscalex, and \picscaley in
  766.        this example are on separate lines for the purpose of
  767.        illustration only. In actual RTF code, they can be included on
  768.        the same line.
  769.  
  770.  
  771. FOOTNOTES
  772. =========
  773.  
  774. The group containing footnote text begins with the control word
  775. \*\footnote. Footnotes are anchored to the character that immediately
  776. precedes the footnote group. If automatic footnoting is defined, the
  777. group can be preceded by a footnote reference character, identified by
  778. the control word \chftn.
  779.  
  780. The following is an example of a group containing footnotes:
  781.  
  782.         ...
  783.         \ftnbj\ftnrestart \sectd \\linemod0\linex0\endnhere
  784.         \pard\plain \ri1170 \fs20 {pu6 Mead's landmark study has been
  785.         amply annotated.\chftn
  786.   A--| {\*\footnote \pard\plain \s246 \fs20 {\up6\chftn }See Sahlins,
  787.      | Bateson, and Geertz for a complete bibliography.}
  788.         It was her work in America during the Second World War,
  789.         however, that forms the basis for the paper. As others have
  790.         noted, \chftn
  791.   A--| {\*\footnote \pard\plain \s246 \fs20 {\up6\chftn}
  792.      | A complete bibliography will be found at the end of the
  793.      | chapter.}
  794.         this period was a turning point for Margaret Mead.}
  795.         \par
  796.         ...
  797.  
  798.           Mead's landmark study has been amply annotated.1 It was her
  799.           work in America during the Second World War, however, that
  800.           forms the basis for this paper. As others have noted,2 this
  801.           period was a turning point for Margaret Mead.
  802.           
  803.           1 See Sahlins, Bateson, and Geertz for a complete
  804.           bibliography.
  805.           
  806.           2 A complete bibliography will be found at the end of the
  807.           chapter.
  808.  
  809.    A: Footnotes
  810.    
  811.  
  812. For other control words relating to footnotes, see the sections titled
  813. "Document Formatting Properties," "Section Formatting Properties," and
  814. "Special Characters" later in this document.
  815.  
  816.  
  817. ANNOTATIONS
  818.  
  819. ===========
  820.  
  821. The group containing annotation text begins with the control word
  822. \*\annotation. Annotations are anchored to the character that
  823. immediately precedes the annotation group. The group must be preceded
  824. by an annotation reference character identified by the control word
  825. \chatn. The annotation reference character must in turn be preceded by
  826. a group that begins with the control word \*\atnid and that contains
  827. the identification text for the author of the annotation. An example
  828. of annotation text follows:
  829.  
  830.   ...
  831.   An example of a paradigm might be Newtonian physics or
  832.   Darwinian biology.{\v\fs16 {\atnid bz}\chatn{\*\annotation
  833.   \pard\plain \s224 \fs20 {field{fldinst page \\*"'Page:
  834.   '#\line'"}{\fldrslt}}{\fs 16 \chatn }
  835.   How about some examples that deal with social science?
  836.   That's what this paper is about.}}
  837.   ...
  838.  
  839.  
  840. HEADERS AND FOOTERS
  841. ===================
  842.  
  843. Headers and footers are treated as separate groups in RTF. Different
  844. headers and footers can be defined for different sections in the
  845. document. If none is defined for a given section, the headers and
  846. footers from the previous section (if any) are used. These groups must
  847. precede the first plain-text character in the document section to
  848. which they apply.
  849.  
  850. The control words \header and \footer begin these groups. These
  851. control words can be replaced by the following control words, as
  852. appropriate:
  853.  
  854.   Control Word    Meaning
  855.   ------------    -------
  856.                   
  857.   \headerl        The header is on left pages only.
  858.   \headerr        The header is on right pages only.
  859.   \headerf        The header is on the first page only.
  860.   \footerl        The footer is on left pages only.
  861.   \footerr        The footer is on right pages only.
  862.   \footerf        The footer is on the first page only.
  863.  
  864. The \headerl and \headerr and \footerl and \footerr control words are
  865. used in conjunction with the \facingp control word, and the \headerf
  866. and \footerf control words are used in conjunction with the \titlepg
  867. control word. For more information, see "Document Formatting
  868. Properties" and "Section-Formatting Properties" in this document.
  869.  
  870.  
  871. SUMMARY INFORMATION
  872. ===================
  873.  
  874. The RTF file can also contain a summary information group, which is
  875. translated but not displayed with the text. This information can
  876. include the title, author, keywords, comments, and other information
  877. specific to the file. This information is for use by a document-
  878. management utility, if available.
  879.  
  880. This group begins with the control word \info. Some applications, such
  881. as Word, ask the user to type this information when saving the
  882. document in its native format. If the document is then saved as an RTF
  883. file or translated into RTF, the RTF writer specifies this information
  884. using the following control words. These control words are
  885. destinations, and both the control words and the text should be
  886. enclosed within braces ({ }).
  887.  
  888.   Control Word    Meaning
  889.   ------------    -------
  890.                   
  891.                   
  892.   \title          The title of the document
  893.   \subject        The subject of the document
  894.   \author         The author of the document
  895.   \operator       The person who last made changes to the document
  896.   \keywords       Selected keywords for the document
  897.   \comment        Comments; text is ignored
  898.   \version<N>     The version number of the document
  899.   \doccomm        Comments displayed in WordÆs Summary Info dialog
  900.                   box
  901.  
  902. The RTF writer can automatically enter other control words, including
  903. the following:
  904.  
  905.   Control Word    Meaning
  906.   ------------    -------
  907.                   
  908.   \vern<N>        The internal version number
  909.   \creatim        The creation time
  910.   \revtim         The revision time
  911.   \printim        The last print time
  912.   \buptim         The backup time
  913.   \edmins<N>      The total editing time (in minutes)
  914.   \yr<N>          The year
  915.   \mo<N>          The month
  916.   \dy<N>          The day
  917.   \hr<N>          The hour
  918.   \min<N>         The minute
  919.   \nofpages<N>    The number of pages
  920.   \nofwords<N>    The number of words
  921.   \nofchars<N>    The number of characters
  922.   \id<N>          The internal ID number
  923.  
  924. Entries without the <N> parameter have the \yr \mo \dy \hr \min
  925. format. An example of a summary information group follows:
  926.  
  927.    ...
  928.    {\info{\title The Panda's Thumb}{\author Stephen J.
  929.    Gould}{\keywords science natural history }}
  930.    
  931.  
  932. FIELDS
  933. ======
  934.  
  935. The field group contains the text of Word fields. For more detailed
  936. information on fields, choose Help in Microsoft Word for Windows.
  937.  
  938. The field group begins with the control word \field. The following
  939. control words can follow the \field control word:
  940.  
  941.   Control Word    Meaning
  942.   ------------    -------
  943.                   
  944.   \flddirty       A formatting change has been made to the field
  945.                   result since the field was last updated.
  946.  
  947.   \fldedit        The text has been added to, or removed from, the
  948.                   field result since the field was last updated.
  949.  
  950.   \fldlock        A field is locked and cannot be updated.
  951.  
  952.   \fldpriv        A result is not in a form suitable for display
  953.                   (for example, binary data used by fields whose
  954.                   result is a picture).
  955.  
  956. Two subgroups are available within the \field group. They must be
  957. enclosed within braces ({ }) and begin with the following control
  958. words:
  959.  
  960.   Control Word    Meaning
  961.   ------------    -------
  962.                   
  963.   \*\fldinst      Field instructions
  964.   \fldrslt        The most recently calculated result of the field
  965.  
  966. The \fldrslt control word should be included even if no result has
  967. been calculated because even readers that do not recognize fields can
  968. generally include the value of the \fldrslt group in the document.
  969.  
  970. An example of field text follows:
  971.   
  972.       A                  B                  C
  973.       |                  |                  |
  974.     -----          --------------   -----------------
  975.   {\field\fldedit{\fldinst author}{\fldrslt Joe Smith}}\par\pard
  976.   {\field{\fldinst time \\@ "h:mm AM/PM"}{\fldrslt 8:12 AM}}
  977.     -----  -----------------------------  -----------------
  978.       |                 |                          |
  979.       A                 B                          C
  980.   
  981.   A  Begins field group
  982.   B  Field instructions
  983.   C  Field result
  984.  
  985.  
  986. INDEX ENTRIES
  987. =============
  988.  
  989. The index entry group begins with the control word \xe. Following this
  990. control word is the text of the index entry and other optional control
  991. words that further define the index entry.
  992.  
  993. If the text of the index entry is not formatted as hidden text with
  994. the \v control word, the text is put into the document as well as into
  995. the index. For more information on the \v control word, see "Character
  996. Formatting Properties" in this document. Similarly, the text of the
  997. \txe subgroup, described later in this section, becomes part of the
  998. document if it is not formatted as hidden text.
  999.  
  1000. The following control words can also be used:
  1001.  
  1002.   Control Word    Meaning
  1003.   ------------    -------
  1004.                   
  1005.   \bxe            Formats the page number or cross-reference in bold
  1006.   \ixe            Formats the page number or cross-reference in
  1007.                   italic
  1008.  
  1009. The following control words are destinations within the \xe group and
  1010. are followed by text arguments. These control words and their
  1011. arguments must be enclosed within braces ({ })
  1012.  
  1013.   Control Word           Meaning
  1014.   ------------           -------
  1015.                          
  1016.   \txe <Text>            The text argument is to be used instead of
  1017.                          a page number.
  1018.  
  1019.   \rxe <BookmarkName>    The text argument is a bookmark for the
  1020.                          range of page numbers.
  1021.  
  1022. An example of an index entry follows:
  1023.  
  1024.     A         B               C                 D         E    F
  1025.     |         |               |                 |         |    |
  1026.     --  -------------   ---------------   -------------  ---  ---
  1027.   {\xe{\v Index Entry}{\rxe Index Range}{\txe See Index}\bxe \ixe }
  1028.   
  1029.   A  Begins index-entry group
  1030.   B  Entry text
  1031.   C  Bookmark defining range of pages
  1032.   D  Replacement for page number
  1033.   E  Bold entry in index table
  1034.   F  Italic entry in index table
  1035.  
  1036.  
  1037. TABLE OF CONTENTS ENTRIES
  1038. =========================
  1039.  
  1040. The table of contents entry group begins with the control word \tc. It
  1041. is followed by the text of the table of contents entry and other
  1042. optional control words that further define the group.
  1043.  
  1044. As with index entries, text that is not formatted as hidden with the
  1045. \v character-formatting control word is put into the document. The
  1046. following control words can also be used in this group:
  1047.  
  1048.   Control Word    Meaning
  1049.   ------------    -------
  1050.                   
  1051.   \tcf<N>         The type of table being compiled; <N> is mapped
  1052.                   by existing Microsoft software to a letter
  1053.                   between A and Z (the default is 67, which maps to
  1054.                   C and is used for tables of contents).
  1055.  
  1056.   \tcl<N>         The level number (the default is 1).
  1057.  
  1058. OBJECTS
  1059. =======
  1060.  
  1061. Objects are structures in a document that contain a data portion and a
  1062. result portion. The data portion generally appears hidden to the
  1063. application that produced the document. A separate application uses
  1064. the data and supplies the result or appearance of the data. This
  1065. appearance is the result portion of the object. Some examples of
  1066. objects include object linking and embedding (OLE) objects and Edition
  1067. Manager Subscriber objects on the Macintosh platform.
  1068.  
  1069. In RTF, the results of objects are represented so that RTF readers
  1070. that donÆt understand objects or donÆt use a particular type of object
  1071. are able to use the current result in place of the object. This allows
  1072. the appearance of the object to be maintained through the conversion
  1073. even though the object functionality is lost. For this reason, it is
  1074. important for RTF writers to supply the object result. The format of
  1075. the result should be standard RTF.
  1076.  
  1077. The data portion of an OLE object is the structure produced from the
  1078. OLE SaveToStream function. Some OLE clients rely on the OLE system to
  1079. render the object, and a copy of the result is not available to the
  1080. RTF writer for that application. For these cases, the object result
  1081. can be obtained from the structure produced from the OLE SaveToStream
  1082. function.
  1083.  
  1084. An object group is defined by the control word \object. These objects
  1085. can be either embedded objects, OLE links, or subscriber objects on
  1086. the Macintosh platform. If the RTF readerÆs application does not use
  1087. the type of object represented, then all the object information and
  1088. data should be ignored and the object result should be inserted into
  1089. the document in place of the object.
  1090.  
  1091. Each object comes with optional information about the object, a
  1092. required data group that contains the object data, and an optional
  1093. result that contains the last display of the object. This result
  1094. contains standard RTF. It is the responsibility of the RTF writer to
  1095. provide the result so that existing RTF readers will be able to
  1096. display the object without having full object support.
  1097.  
  1098. The syntax for this group is as follows:
  1099.  
  1100. {\object [\objemb|\objlink|\objautlink|\objsub|\objpub|\objicemb]
  1101. [\linkself] [\objlock] [{\*\objclass <Name>}] [{\*\objname <Name>}]
  1102. [\rsltmerge] [\rsltrtf|\rslttxt|\rsltpict|\rsltbmp] [\objsetsize]
  1103. [\objalign<N>] [\objtransy<N>] [\objh<N> \objw<N>]
  1104. [\objcropt<N>][\objcropb<N>][\objcropl<N>][\objcropr<N>]
  1105. [\objscalex<N>][\objscaley<N>] {\*\objdata[{\*\objalias[\bin<N>]
  1106. <Data>} {\*\objsect[\bin<N>] <Data>}] [\bin<N>] <Data>}<Result>}
  1107.  
  1108. See the \result control word in the following table for a description
  1109. of <Result>:
  1110.  
  1111.   Object Type
  1112.   --------------------------------------------------------------------
  1113.  
  1114.   Control Word    Meaning
  1115.   ------------    -------
  1116.                  
  1117.   \objemb         An object type of OLE embedded object. If no type
  1118.                   is given for the object, the object is assumed to
  1119.                   be of type \objemb.
  1120.  
  1121.   \objlink        An object type of OLE link.
  1122.  
  1123.   \objautlink     An object type of OLE autolink.
  1124.  
  1125.   \objsub         An object type of Macintosh Edition Manager
  1126.                   subscriber.
  1127.  
  1128.   \objicemb       An object type of MS Word for Macintosh Installable
  1129.                   Command (IC) Embedder.
  1130.   
  1131.   Object Information
  1132.   --------------------------------------------------------------------
  1133.   
  1134.   Control Word    Meaning
  1135.   ------------    -------
  1136.                  
  1137.   \linkself       The object is a link to another part of the same
  1138.                   document.
  1139.  
  1140.   \objlock        Locks the object from any updates.
  1141.  
  1142.   \objclass       The syntax for the group is {\*\objclass <Name>}
  1143.                   where <Name> is the name of the object class. This
  1144.                   is optional in the \object group.
  1145.  
  1146.   \objname        The syntax for group is {\*\objname <Name>} where
  1147.                   <Name> is the name of the specific object instance.
  1148.                   This is optional in the \object group.
  1149.   
  1150.   Object Size, Position, Cropping, and Scaling
  1151.   --------------------------------------------------------------------
  1152.   
  1153.   Control Word    Meaning
  1154.   ------------    -------
  1155.                  
  1156.   \objh<N>        <N> is the original object height in twips.
  1157.  
  1158.   \objw<N>        <N> is the original object width in twips.
  1159.  
  1160.   \objsetsize     Forces the object server to set the objectÆs
  1161.                   dimensions to those specified by the client.
  1162.  
  1163.   \objtransy<N>   <N> is the distance in twips an object should be
  1164.                   moved vertically with respect to the baseline. This
  1165.                   control word is needed to place MathType(TM)
  1166.                   equation objects correctly in line. This is an
  1167.                   optional control of the \object group.
  1168.  
  1169.   \objcropt<N>    <N> is the top cropping distance in twips.
  1170.  
  1171.   \objcropb<N>    <N> is the bottom cropping distance in twips.
  1172.  
  1173.   \objcropl<N>    <N> is the left cropping distance in twips.
  1174.  
  1175.   \objcropr<N>    <N> is the right cropping distance in twips.
  1176.  
  1177.   \objscalex<N>   <N> is the horizontal scaling percentage.
  1178.  
  1179.   \objscaley<N>   <N> is the vertical scaling percentage.
  1180.   
  1181.   Object Data
  1182.   --------------------------------------------------------------------
  1183.   
  1184.   Control Word    Meaning
  1185.   ------------    -------
  1186.                  
  1187.   \objdata        The \objdata subgroup is required to be in the
  1188.                   \object group. The syntax for this group is
  1189.                   {\*\objdata[{\*\objalias[\bin<N>]
  1190.                   <Data>}{\*\objsect[\bin<N>] <Data>}][\bin<N>]
  1191.                   <ObjectData>} where <ObjectData> represents the
  1192.                   complete data of the object. If the \bin<N> option
  1193.                   is used, then <N> represents the number of bytes of
  1194.                   binary data. Otherwise, the <ObjectData >is in
  1195.                   hexadecimal.
  1196.  
  1197.   \objalias       This group contains the Alias Record for the
  1198.                   publisher object for the Macintosh Edition Manager.
  1199.                   If the \bin control is used, the data is in binary
  1200.                   numerical format. Otherwise, it is represented in
  1201.                   the RTF stream in hexadecimal.
  1202.  
  1203.   \objsect        This group contains the Section Record for the
  1204.                   publisher object for the Macintosh Edition Manager.
  1205.                   If the \bin control is used, the data is in binary
  1206.                   numerical format. Otherwise, it is represented in
  1207.                   the RTF stream in hexadecimal.
  1208.   
  1209.   Object Result
  1210.   --------------------------------------------------------------------
  1211.   
  1212.   Control Word    Meaning
  1213.   ------------    -------
  1214.                  
  1215.   \rsltrtf        Forces the result to be RTF, if possible.
  1216.  
  1217.   \rsltpict       Forces the result to be a Windows metafile or
  1218.                   MacPict image, if possible.
  1219.  
  1220.   \rsltbmp        Forces the result to be a bitmap, if possible.
  1221.  
  1222.   \rslttxt        Forces the result to be plain text, if possible.
  1223.  
  1224.   \rsltmerge      Uses the formatting of the current result whenever
  1225.                   a new result is obtained.
  1226.  
  1227.   \result         The result group is optional in the \object group.
  1228.                   It contains the last update of the result of the
  1229.                   object. The data of the result group should be
  1230.                   standard RTF so that RTF readers that donÆt
  1231.                   understand objects or the type of object
  1232.                   represented can use the current result in the
  1233.                   objectÆs place to maintain the object's appearance.
  1234.                   The syntax for this group is {\result <ResultData>}
  1235.                   where <ResultData> is standard RTF syntax.
  1236.  
  1237.  
  1238. BOOKMARKS
  1239. =========
  1240.  
  1241. This group contains two control words: \*\bkmkstart, which indicates
  1242. the start of the specified bookmark, and \*\bkmkend, which indicates
  1243. the end of the specified bookmark. A bookmark is shown in the
  1244. following example:
  1245.  
  1246.   ...
  1247.   \pard\plain \fs20 Kuhn believes that science, rather than
  1248.   discovering in experience certain structured
  1249.   relationships, actually creates (or already participates in)
  1250.   a presupposed structure to which it fits the data.
  1251.   {\bkmkstart paradigm} Kuhn calls such a presupposed
  1252.   structure a paradigm.{\bkmkend paradigm}
  1253.   ...
  1254.  
  1255. If a bookmark covers a partial selection of columns of a table,
  1256. \bkmkcolf<N> is used to denote the first column of a table covered by
  1257. a bookmark and \bkmkcoll<N> is used to denote the last column. If
  1258. \bkmkcolf is not included, the first column of the table is used as
  1259. the first column for the bookmark. If \bkmkcoll is not included, the
  1260. last column of the table is used for the bookmark. These controls are
  1261. used within the \*\bkmkstart group following the \bkmkstart control.
  1262. For example, {\*\bkmkstart\bkmkcolf2\bkmkcoll5 Table1} places the
  1263. bookmark "Table1" on columns 2 through 5 of a table.
  1264.  
  1265.  
  1266. MACINTOSH EDITION MANAGER PUBLISHER OBJECTS
  1267. ===========================================
  1268.  
  1269. These controls define the RTF controls used to define publisher
  1270. objects for the Macintosh Edition Manager. The range of publisher
  1271. objects are marked as bookmarks; therefore, these controls are all
  1272. used within the \bkmkstart group. The RTF syntax for a publisher
  1273. object is:
  1274.  
  1275.   {\*\bkmkstart\bkmkpub[\pubauto]{\*\objalias[\bin]
  1276.   <Data>}{\*\objsect[\bin] <Data>} <BookmarkName>}
  1277.  
  1278.   Control Word    Meaning
  1279.   ------------    -------
  1280.                  
  1281.   \bkmkpub        The bookmark marks a Macintosh Edition Manager
  1282.                   publisher object.
  1283.  
  1284.   \pubauto        The publisher object will automatically update all
  1285.                   Macintosh Edition Manager subscribers of this
  1286.                   object whenever it is edited.
  1287.  
  1288.   \objalias       This group contains the Alias Record for the
  1289.                   publisher object for the Macintosh Edition Manager.
  1290.                   If the \bin control is used, the data is in binary
  1291.                   format. Otherwise, it is in hexadecimal.
  1292.  
  1293.   \objsect        This group contains the Section Record for the
  1294.                   publisher object for the Macintosh Edition Manager.
  1295.                   If the \bin control is used, the data is in binary
  1296.                   format. Otherwise, it is in hexadecimal.
  1297.  
  1298.  
  1299. DOCUMENT FORMATTING PROPERTIES
  1300. ==============================
  1301.  
  1302. This section specifies the attributes of the document, such as margins
  1303. and footnote placement. These attributes must precede the first plain-
  1304. text character in the document.
  1305.  
  1306. The control words that specify document formatting are listed in the
  1307. following table (the measurements are in twips).
  1308.  
  1309. The default values are used for omitted control words.
  1310.  
  1311.   Control Word    Meaning
  1312.   ------------    -------
  1313.                  
  1314.   \deftab<N>      The default tab width (the default is 720).
  1315.  
  1316.   \hyphhotz       The hyphenation hot zone (the amount of space at
  1317.                   the right margin in which words are hyphenated--the
  1318.                   default for Word is 360 twips).
  1319.  
  1320.   \linestart<N>   The beginning line number (the default is 1).
  1321.  
  1322.   \fracwidth      Uses fractional character widths when printing
  1323.                   (QuickDraw only).
  1324.  
  1325.   \*\nextfile     The destination; the argument is the name of the
  1326.                   file to print or index next; must be enclosed with
  1327.                   braces.
  1328.  
  1329.   \*\template     The destination; the argument is the name of a
  1330.                   related template file; must be enclosed with
  1331.                   braces.
  1332.  
  1333.   \makebackup     The backup copy is made automatically when the
  1334.                   document is saved.
  1335.  
  1336.   \defformat      Tells the RTF reader that the document should be
  1337.                   saved in RTF format.
  1338.  
  1339.   \psover         Prints PostScript over the text.
  1340.  
  1341.   \deflang<N>     Defines the default language used in the document
  1342.                   when character formatting is reset with the \plain
  1343.                   control word. See "Character Formatting Properties"
  1344.                   in this document for a list of possible values for
  1345.                   <N>.
  1346.   
  1347.   Footnotes
  1348.   --------------------------------------------------------------------
  1349.   
  1350.   Control Word    Meaning
  1351.   ------------    -------
  1352.                  
  1353.   \ftnsep         The text argument separates footnotes from the
  1354.                   document.
  1355.  
  1356.   \ftnsepc        The text argument separates continued footnotes
  1357.                   from the document.
  1358.  
  1359.   \ftncn          The text argument is a notice for continued
  1360.                   footnotes.
  1361.  
  1362.   \endnotes       Print the footnotes at the end of the section (the
  1363.                   default).
  1364.  
  1365.   \enddoc         Print the footnotes at the end of the document.
  1366.  
  1367.   \ftntj          Print the footnotes beneath text.
  1368.  
  1369.   \ftnbj          Print the footnotes at the bottom of the page.
  1370.  
  1371.   \ftnstart<N>    The beginning footnote number (the default is 1).
  1372.  
  1373.   \ftnrestart     The footnote numbers restart at each section.
  1374.   
  1375.   Page Information
  1376.   --------------------------------------------------------------------
  1377.   
  1378.   Control Word    Meaning
  1379.   ------------    -------
  1380.                  
  1381.   \paperw<N>      The paper width (the default is 12,240).
  1382.  
  1383.   \paperh<N>      The paper height (the default is 15,840).
  1384.  
  1385.   \margl<N>       The left margin (the default is 1,800).
  1386.  
  1387.   \margr<N>       The right margin (the default is 1,800).
  1388.  
  1389.   \margt<N>       The top margin (the default is 1,440).
  1390.  
  1391.   \margb<N>       The bottom margin (the default is 1,440).
  1392.  
  1393.   \facingp        Facing pages (activates odd/even headers and
  1394.                   gutters).
  1395.  
  1396.   \gutter<N>      The gutter width (the default is 0).
  1397.  
  1398.   \margmirror     Switches margin definitions on left and right pages.
  1399.  
  1400.   \landscape      Landscape format.
  1401.  
  1402.   \pgnstart<N>    The beginning page number (the default is 1).
  1403.  
  1404.   \widowctrl      Widow control.
  1405.   
  1406.   Revision Marks
  1407.   --------------------------------------------------------------------
  1408.   
  1409.   Control Word    Meaning
  1410.   ------------    -------
  1411.                  
  1412.   \revisions      Turns on revision marking.
  1413.  
  1414.   \revprop<N>     Argument indicates how revised text will be
  1415.                   displayed: 0 for no properties shown; 1 for bold; 2
  1416.                   for italic; 3 for underline (the default); 4 for
  1417.                   double underline.
  1418.  
  1419.   \revbar<N>      Vertical lines mark altered text, based on the
  1420.                   argument: 0 for no marking; 1 for left margin; 2
  1421.                   for right margin; 3 for outside (left on left
  1422.                   pages, right on right pages; the default).
  1423.  
  1424.  
  1425. SECTION FORMATTING PROPERTIES
  1426. =============================
  1427.  
  1428. This group specifies section formatting properties, which apply to the
  1429. text FOLLOWING the control word, with the exception of the section
  1430. break control words (those beginning with \sbk). Section break control
  1431. words describe the break PRECEDING the text.
  1432.  
  1433.   Section Formatting Control Words
  1434.   --------------------------------------------------------------------
  1435.   
  1436.   Control Word    Meaning
  1437.   ------------    -------
  1438.                  
  1439.   \sectd          Reset to the default section properties.
  1440.  
  1441.   \endnhere       Endnotes included in the section.
  1442.  
  1443.   \binfsxn<N>     <N> is the printer bin used for the first page of
  1444.                   the section. If this control is not defined, the
  1445.                   first page uses the same printer bin as defined by
  1446.                   the \binsxn<N> control.
  1447.  
  1448.   \binsxn<N>      <N> is the printer bin used for the pages of the
  1449.                   section.
  1450.   
  1451.   Section Break
  1452.   --------------------------------------------------------------------
  1453.   
  1454.   Control Word    Meaning
  1455.   ------------    -------
  1456.                  
  1457.   \sbknone        No section break.
  1458.  
  1459.   \sbkcol         The section break starts a new column.
  1460.  
  1461.   \sbkpage        The section break starts a new page (the default).
  1462.  
  1463.   \sbkeven        The section break starts at an even page.
  1464.  
  1465.   \sbkodd         The section break starts at an odd page.
  1466.  
  1467.   Columns
  1468.   --------------------------------------------------------------------
  1469.  
  1470.   Control Word    Meaning
  1471.   ------------    -------
  1472.                  
  1473.   \cols<N>        The number of columns for "snaking" (the default is
  1474.                   1).
  1475.  
  1476.   \colsx<N>       The space between columns in twips (the default is
  1477.                   720).
  1478.  
  1479.   \linebetcol     Insert a line between columns.
  1480.   
  1481.   Line Numbering
  1482.   --------------------------------------------------------------------
  1483.   
  1484.   Control Word    Meaning
  1485.   ------------    -------
  1486.                  
  1487.   \linemod<N>     The line number modulus amount to increase each line
  1488.                   number (the default is 1).
  1489.  
  1490.   \linex<N>       The default value for <N> is 360 if \linex is
  1491.                   omitted. A value of 0 for <N> means the automatic
  1492.                   distance for the application reading the RTF file.
  1493.  
  1494.   \linestarts<N>  The beginning line number (the default is 1).
  1495.  
  1496.   \linerestart    The line numbers restart at the \linestarts value.
  1497.  
  1498.   \lineppage      The line numbers restart on each page.
  1499.  
  1500.   \linecont       The line numbers continue from the preceding
  1501.                   section.
  1502.   
  1503.   Page Information
  1504.   --------------------------------------------------------------------
  1505.   
  1506.   Control Word    Meaning
  1507.   ------------    -------
  1508.                  
  1509.   \pgwsxn<N>      <N> is the page width in twips. A \sectd control
  1510.                   resets the value to that specified by \paperw<N> in
  1511.                   the document properties.
  1512.  
  1513.   \pghsxn<N>      <N> is the page height in twips. A \sectd control
  1514.                   resets the value to that specified by \paperh<N> in
  1515.                   the document properties.
  1516.  
  1517.   \marglsxn<N>    <N> is the left margin of the page in twips. A
  1518.                   \sectd control resets the value to that specified by
  1519.                   \margl<N> in the document properties.
  1520.  
  1521.   \margrsxn<N>    <N> is the right margin of the page in twips. A
  1522.                   \sectd control resets the value to that specified by
  1523.                   \margr<N> in the document properties.
  1524.  
  1525.   \margtsxn<N>    <N> is the right margin of the page in twips. A
  1526.                   \sectd control resets the value to that specified by
  1527.                   \margr<N> in the document properties.
  1528.  
  1529.   \margbsxn<N>    <N> is the top margin of the page in twips. A \sectd
  1530.                   control resets the value to that specified by
  1531.                   \margt<N> in the document properties.
  1532.  
  1533.   \guttersxn<N>   <N> is the width of the gutter margin for the
  1534.                   section in twips. A \sectd control resets the value
  1535.                   to that specified by \gutter<N> in the document
  1536.                   properties. If facing pages is turned off, the
  1537.                   gutter will be added to the left margin of all
  1538.                   pages. If facing pages is turned on, the gutter will
  1539.                   be added to the left side of odd-numbered pages and
  1540.                   the right side of even-numbered pages.
  1541.  
  1542.   \lndscpsxn      Page orientation is in landscape format. To mix
  1543.                   portrait and landscape sections within a document,
  1544.                   the \landscape control should not be used so that
  1545.                   the default for a section is portrait, which may be
  1546.                   overridden by the \lndscpsxn control.
  1547.  
  1548.   \titlepg        The first page has a special format.
  1549.  
  1550.   \headery<N>     The header is <N> twips from the top of the page
  1551.                   (the default is 720).
  1552.  
  1553.   \footery<N>     The footer is <N> twips from the bottom of the page
  1554.                   (the default is 720).
  1555.   
  1556.   Page Numbers
  1557.   --------------------------------------------------------------------
  1558.   
  1559.   Control Word    Meaning
  1560.   ------------    -------
  1561.                  
  1562.   \pgnstarts<N>   The beginning page number (the default is 1).
  1563.  
  1564.   \pgncont        The continuous page numbering (the default).
  1565.  
  1566.   \pgnrestart     The page numbers restart at the \pgnstarts value.
  1567.  
  1568.   \pgnx<N>        The page number is <N> twips from the right margin
  1569.                   (the default is 720).
  1570.  
  1571.   \pgny<N>        The page number is <N> twips from the top margin
  1572.                   (the default is 720).
  1573.  
  1574.   \pgndec         The page-number format is decimal.
  1575.  
  1576.   \pgnucrm        The page-number format is uppercase Roman numerals.
  1577.  
  1578.   \pgnlcrm        The page-number format is lowercase Roman numerals.
  1579.  
  1580.   \pgnucltr       The page-number format is uppercase letters.
  1581.  
  1582.   \pgnlcltr       The page-number format is lowercase letters.
  1583.   
  1584.   Vertical Alignment
  1585.   --------------------------------------------------------------------
  1586.   
  1587.   Control Word    Meaning
  1588.   ------------    -------
  1589.                  
  1590.   \vertalt        The text is top aligned on the page (the default).
  1591.   \vertal         The text is bottom aligned on the page.
  1592.   \vertalc        The text is centered vertically on the page.
  1593.   \vertalj        The text is justified vertically on the page.
  1594.  
  1595.  
  1596. PARAGRAPH FORMATTING PROPERTIES
  1597. ===============================
  1598.  
  1599. This group specifies paragraph formatting properties. To ensure
  1600. compatibility with previous versions of RTF, if border properties are
  1601. specified, the border segment control word (\brdrt,\brdrb,\brdrl,
  1602. \brdrr, or \box) must precede the control word(s) that specify the
  1603. pattern for the border.
  1604.  
  1605. Paragraph Formatting Control Words
  1606.   --------------------------------------------------------------------
  1607.  
  1608.   Control Word    Meaning
  1609.   ------------    -------
  1610.                  
  1611.   \pard           Resets to the default paragraph properties.
  1612.  
  1613.   \s<N>           Designates the reference number of the style in the
  1614.                   RTF document; if a style is referenced within the
  1615.                   document, style properties must be included along
  1616.                   with the style reference in the document text.
  1617.  
  1618.   \intbl          The paragraph is part of a table.
  1619.  
  1620.   \keep           Keep the paragraph intact.
  1621.  
  1622.   \keepn          Keep the paragraph with the next paragraph.
  1623.  
  1624.   \noline         No line numbering.
  1625.  
  1626.   \pagebb         Break the page before the paragraph.
  1627.  
  1628.   \sbys           Side-by-side paragraphs.
  1629.   
  1630.   Alignment
  1631.   --------------------------------------------------------------------
  1632.   
  1633.   Control Word    Meaning
  1634.   ------------    -------
  1635.                  
  1636.   \ql             Left aligned (the default)
  1637.   \qr             Right aligned
  1638.   \qj             Justified
  1639.   \qc             Centered
  1640.   
  1641.   Indentation
  1642.   --------------------------------------------------------------------
  1643.   
  1644.   Control Word    Meaning
  1645.   ------------    -------
  1646.                  
  1647.   \fi<N>          First-line indent (the default is 0).
  1648.   \li<N>          Left indent (the default is 0).
  1649.   \ri<N>          Right indent (the default is 0).
  1650.   
  1651.   Spacing
  1652.   --------------------------------------------------------------------
  1653.   
  1654.   Control Word    Meaning
  1655.   ------------    -------
  1656.                  
  1657.   \sb<N>          Space before (the default is 0).
  1658.  
  1659.   \sa<N>          Space after (the default is 0).
  1660.  
  1661.   \sl<N>          Space between lines. If this control word is missing
  1662.                   or if \s1000 is used, the line spacing is
  1663.                   automatically determined by the tallest character in
  1664.                   the line; if <N> is a positive value, this size is
  1665.                   used only if it is taller than the tallest character
  1666.                   (otherwise, the tallest character determines the
  1667.                   size); if <N> is a negative value, the absolute
  1668.                   value of <N> determines the size, even if it is
  1669.                   shorter than the tallest character.
  1670.   
  1671.   Tabs
  1672.   --------------------------------------------------------------------
  1673.   
  1674.   Control Word    Meaning
  1675.   ------------    -------
  1676.                  
  1677.   \tx<N>          The tab position in twips from the left margin.
  1678.   \tqr            A flush-right tab.
  1679.   \tqc            A centered tab.
  1680.   \tqdec          A decimal tab.
  1681.   \tb<N>          A bar tab position in twips from the left margin.
  1682.   \tldot          Leader dots.
  1683.   \tlhyph         Leader hyphens.
  1684.   \tlul           A leader underline.
  1685.   \tlth           A leader thick line.
  1686.   \tleq           A leader equal sign.
  1687.  
  1688.   Paragraph Borders
  1689.   --------------------------------------------------------------------
  1690.  
  1691.   Control Word    Meaning
  1692.   ------------    -------
  1693.                  
  1694.   \brdrt          Border top.
  1695.  
  1696.   \brdrb          Border bottom.
  1697.  
  1698.   \brdrl          Border left.
  1699.  
  1700.   \brdrr          Border right.
  1701.  
  1702.   \brdrbtw        Consecutive paragraphs with identical border
  1703.                   formatting are considered part of a single group
  1704.                   with the border information applying to the entire
  1705.                   group. To have borders around individual paragraphs
  1706.                   within the group, the \brdrbtw control must be
  1707.                   specified for that paragraph.
  1708.  
  1709.   \brdrbar        Box border outside (right side of odd-numbered
  1710.                   pages, left side of even-numbered pages).
  1711.  
  1712.   \box            Border around the paragraph.
  1713.  
  1714.   \brdrs          Single-thickness border.
  1715.  
  1716.   \brdrth         Thick border.
  1717.  
  1718.   \brdrsh         Shadowed border.
  1719.  
  1720.   \brdrdb         Double border.
  1721.  
  1722.   \brdrdot        Dotted border.
  1723.  
  1724.   \brdrhair       Hairline border.
  1725.  
  1726.   \brdrw<N>       <N> is the width in twips of the paragraph border
  1727.                   line. This control should follow the paragraph
  1728.                   border controls \brdrt, \brdrr, \brdrb, and \brdrl.
  1729.  
  1730.   \brdrcf<N>      <N> is the color of the paragraph border from the
  1731.                   color table in the RTF header. This control should
  1732.                   follow the paragraph border controls \brdrt, \brdrr,
  1733.                   \brdrb, and \brdrl.
  1734.  
  1735.   \brsp<N>        Space in twips between borders and the paragraph.
  1736.   
  1737.   Paragraph Shading and Background Pattern
  1738.   --------------------------------------------------------------------
  1739.   
  1740.   Control Word    Meaning
  1741.   ------------    -------
  1742.                  
  1743.   \shading<N>     <N> is the shading of the paragraph in hundredths of
  1744.                   a percent.
  1745.  
  1746.   \bghoriz        Specifies a horizontal background pattern for the
  1747.                   paragraph.
  1748.  
  1749.   \bgvert         Specifies a vertical background pattern for the
  1750.                   paragraph.
  1751.  
  1752.   \bgfdiag        Specifies a forward diagonal background pattern for
  1753.                   the paragraph (\\\\).
  1754.  
  1755.   \bgbdiag        Specifies a backward diagonal background pattern for
  1756.                   the paragraph (////).
  1757.  
  1758.   \bgcross        Specifies a cross-hatched background pattern for the
  1759.                   paragraph.
  1760.  
  1761.   \bgdcross       Specifies a diagonal cross-hatched background
  1762.                   pattern for the paragraph.
  1763.  
  1764.   \bgdkhoriz      Specifies a dark horizontal background pattern for
  1765.                   the paragraph.
  1766.  
  1767.   \bgdkvert       Specifies a dark vertical background pattern for the
  1768.                   paragraph.
  1769.  
  1770.   \bgdkfdiag      Specifies a dark forward diagonal background pattern
  1771.                   for the paragraph (\\\\).
  1772.  
  1773.   \bgdkbdiag      Specifies a dark backward diagonal background
  1774.                   pattern for the paragraph (////).
  1775.  
  1776.   \bgdkcross      Specifies a dark cross-hatched background pattern
  1777.                   for the paragraph.
  1778.  
  1779.   \bgdkdcross     Specifies a dark diagonal cross-hatched background
  1780.                   pattern for the paragraph.
  1781.  
  1782.   \cfpat<N>       <N> is the line color of the background pattern.
  1783.  
  1784.   \cbpat<N>       <N> is the background color of the background
  1785.                   pattern.
  1786.  
  1787.  
  1788. POSITIONED OBJECTS AND FRAMES
  1789. =============================
  1790.  
  1791. The following paragraph-formatting control words specify the location
  1792. of a paragraph on the page. Consecutive paragraphs with the same frame
  1793. formatting are considered to be part of the same frame. For two framed
  1794. paragraphs to appear at the same position on a page, they must be
  1795. separated by a paragraph with different or no frame information.
  1796.  
  1797.   Control Word    Meaning
  1798.   ------------    -------
  1799.                  
  1800.   \absw<N>        <N> is the width of the frame in twips.
  1801.  
  1802.   \absh<N>        <N> is the height of the frame in twips. A positive
  1803.                   number indicates the minimum height of the frame,
  1804.                   and a negative number indicates the exact height of
  1805.                   the frame. A value of 0 indicates that the height of
  1806.                   the frame adjusts to the contents of the frame. Zero
  1807.                   is the default for frames where no height is given.
  1808.   
  1809.   Horizontal Position
  1810.   --------------------------------------------------------------------
  1811.   
  1812.   Control Word    Meaning
  1813.   ------------    -------
  1814.                  
  1815.   \phmrg          Use the margin as the horizontal reference frame.
  1816.  
  1817.   \phpg           Use the page as the horizontal reference frame.
  1818.  
  1819.   \phcol          Use the column as the horizontal reference frame.
  1820.  
  1821.                   This is the default if no horizontal reference frame
  1822.                   is given.
  1823.  
  1824.   \posx<N>        Positions the frame <N> twips from the left edge of
  1825.                   the reference frame.
  1826.  
  1827.   \posxc          Centers the frame horizontally within the reference
  1828.                   frame.
  1829.  
  1830.   \posxi          Positions the paragraph horizontally inside the
  1831.                   reference frame.
  1832.  
  1833.   \posxo          Positions the paragraph horizontally outside the
  1834.                   reference frame.
  1835.  
  1836.   \posxr          Positions the paragraph to the right within the
  1837.                   reference frame.
  1838.  
  1839.   \posxl          Positions the paragraph to the left within the
  1840.                   reference frame. This is the default if no
  1841.                   horizontal positioning information is given.
  1842.   
  1843.   Vertical Position
  1844.   --------------------------------------------------------------------
  1845.   
  1846.   Control Word    Meaning
  1847.   ------------    -------
  1848.                  
  1849.   \pvmrg          Use the margin as the vertical reference frame.
  1850.  
  1851.   \pvpg           Use the page as the vertical reference frame.
  1852.  
  1853.   \pvpara         Positions the reference frame vertically relative to
  1854.                   the top of the top-left corner of the next unframed
  1855.                   paragraph in the RTF stream. This is the default if
  1856.                   no vertical frame positioning information is given.
  1857.  
  1858.   \posy<N>        Positions the paragraph <N> twips from the top edge
  1859.                   of the reference frame.
  1860.  
  1861.   \posyil         Positions the paragraph vertically to be in line.
  1862.  
  1863.   \posyt          Positions the paragraph at the top of the reference
  1864.                   frame.
  1865.  
  1866.   \posyc          Centers the paragraph vertically within the
  1867.                   reference frame.
  1868.   \posyb          Positions the paragraph at the bottom of the
  1869.                   reference frame.
  1870.   
  1871.   Text Wrapping
  1872.   --------------------------------------------------------------------
  1873.   
  1874.   Control Word    Meaning
  1875.   ------------    -------
  1876.                  
  1877.   \dxfrtext<N>    Distance in twips of a positioned paragraph from the
  1878.                   main text flow in all directions. In Word for
  1879.                   Windows 2.0, this control affects only the
  1880.                   horizontal distance from the text on each side of
  1881.                   the frame.
  1882.  
  1883.   \dyfrtext<N>    <N> is the vertical distance in twips from the text
  1884.                   above and below the frame.
  1885.  
  1886. The following is an example of absolute-positioned text in a document:
  1887.  
  1888.                                                              A
  1889.                                                              |
  1890. ...                                                    -------------
  1891. \par \pard \pvpg\phpg\posxc\posyt\absw5040\dxfrtest173 abs pos para1
  1892. \par \pard \phmrg\posxo\posyc\dxfrtext1152 abs pos para2
  1893.                                            -------------
  1894.                                                  |
  1895.                                                  A
  1896.  
  1897.    A: Text to be positioned
  1898.  
  1899.  
  1900. TABLES
  1901. ======
  1902.  
  1903. There is no RTF table group. A table is a collection of paragraphs,
  1904. and a table row is a continuous sequence of paragraphs partitioned
  1905. into cells. The \intbl paragraph formatting control word identifies
  1906. the paragraph as part of a table. This control is inherited between
  1907. paragraphs that do not have paragraph properties reset with a \pard.
  1908. The last paragraph of a cell is terminated by a cell mark (the \cell
  1909. control word), and the row is terminated by a row mark (the \row
  1910. control word). The following control words further define the table:
  1911.  
  1912.   Control Word    Meaning
  1913.   ------------    -------
  1914.                  
  1915.   \trowd          Sets the table row defaults.
  1916.  
  1917.   \trgaph<N>      Half the space between the cells of a table row in
  1918.                   twips.
  1919.  
  1920.   \cellx<N>       Moves the right boundary of a table cell, including
  1921.                   its half of the space between cells.
  1922.  
  1923.   \clmgf          The first cell in a range of table cells to be
  1924.                   merged.
  1925.  
  1926.   \clmrg          The contents of the table cell are merged with those
  1927.                   of the preceding cell.
  1928.   
  1929.   Cell Borders and Shading
  1930.   --------------------------------------------------------------------
  1931.   
  1932.   Control Word    Meaning
  1933.   ------------    -------
  1934.                  
  1935.   \clbrdrb        The bottom table cell border.
  1936.   \clbrdrt        The top table cell border.
  1937.   \clbrdrl        The left table cell border.
  1938.   \clbrdrr        The right table cell border.
  1939.   
  1940.   Row Formatting
  1941.   --------------------------------------------------------------------
  1942.   
  1943.   Control Word    Meaning
  1944.   ------------    -------
  1945.                  
  1946.   \trql           Left-justifies a table row with respect to its
  1947.                   containing column.
  1948.  
  1949.   \trqr           Right-justifies a table row with respect to its
  1950.                   containing column.
  1951.  
  1952.   \trqc           Centers a table row with respect to its containing
  1953.                   column.
  1954.  
  1955.   \trleft<N>      The position of the leftmost edge of the table with
  1956.                   respect to the left edge of its column.
  1957.  
  1958.   \trrh<N>        The height of a table row in twips; when 0, the
  1959.                   height is sufficient for all the text in the line;
  1960.                   when positive, the height is guaranteed to be at
  1961.                   least the specified height; when negative, the
  1962.                   absolute value of the height is used, regardless of
  1963.                   the height of the text in the line.
  1964.   
  1965.   Cell Shading and Background Pattern
  1966.   --------------------------------------------------------------------
  1967.   
  1968.   Control Word    Meaning
  1969.   ------------    -------
  1970.                  
  1971.   \clshdng<N>     <N> is the shading of a table cell in hundredths of
  1972.                   a percent. This control should be included in RTF
  1973.                   along with cell border information.
  1974.  
  1975.   \clbghoriz      Specifies a horizontal background pattern for the
  1976.                   cell.
  1977.  
  1978.   \clbgvert       Specifies a vertical background pattern for the
  1979.                   cell.
  1980.  
  1981.   \clbgfdiag      Specifies a forward diagonal background pattern for
  1982.                   the cell (\\\\).
  1983.  
  1984.   \clbgbdiag      Specifies a backward diagonal background pattern for
  1985.                   the cell (////).
  1986.  
  1987.   \clbgcross      Specifies a cross-hatched background pattern for the
  1988.                   cell.
  1989.  
  1990.   \clbgdcross     Specifies a diagonal cross-hatched background
  1991.                   pattern for the cell.
  1992.  
  1993.   \clbgdkhor      Specifies a dark horizontal background pattern for
  1994.                   the cell.
  1995.  
  1996.   \clbgdkvert     Specifies a dark vertical background pattern for the
  1997.                   cell.
  1998.  
  1999.   \clbgdkfdiag    Specifies a dark forward diagonal background pattern
  2000.                   for the cell (\\\\).
  2001.  
  2002.   \clbgdkbdiag    Specifies a dark backward diagonal background
  2003.                   pattern for the cell (////).
  2004.   \clbgdkcross    Specifies a dark cross-hatched background pattern
  2005.                   for the cell.
  2006.  
  2007.   \clbgdkdcross   Specifies a dark diagonal cross-hatched background
  2008.                   pattern for the cell.
  2009.  
  2010.   \clcfpat<N>     <N> is the line color of the background pattern.
  2011.  
  2012.   \clcbpat<N>     <N> is the background color of the background
  2013.                   pattern.
  2014.  
  2015. The following example shows some table text:
  2016.   
  2017.   ...
  2018.   \par \trowd \trqc\trgaph108\trrh280\trleft36
  2019.   \clbrdrt\brdrth \clbrdrl\brdrth \clbrdrb\brdrdb
  2020.   \clbrdrr\brdrdb \cellx3636\clbrdrt\brdrth
  2021.   ...
  2022.  
  2023.  
  2024. CHARACTER FORMATTING PROPERTIES
  2025. ===============================
  2026.  
  2027. The last group controls character formatting properties. A control
  2028. word preceding plain text turns on the specified attribute. Some
  2029. control words (indicated in the following table by an asterisk
  2030. following the description) can be turned off by the control word
  2031. followed by 0 (zero). For example, \b turns on bold, whereas \b0 turns
  2032. off bold.
  2033.  
  2034. The character formatting control words are listed in the following
  2035. table:
  2036.  
  2037.   Control Word    Meaning
  2038.   ------------    -------
  2039.                  
  2040.   \plain          Resets applicationÆs default character formatting
  2041.                   properties.
  2042.  
  2043.   \b              Turns on bold.*
  2044.  
  2045.   \caps           Turns on all uppercase.*
  2046.  
  2047.   \deleted        Marks the text as deletion revision marked.*
  2048.  
  2049.   \dn<N>          Sets the subscript position in half-points (the
  2050.                   default is 6).
  2051.  
  2052.   \expnd<N>       Sets the expansion or compression of the space
  2053.                   between characters in quarter-points; a negative
  2054.                   value compresses the space (the default is 0).
  2055.  
  2056.   \f<N>           Identifies the font number.
  2057.  
  2058.   \fs<N>          Sets the font size in half-points (the default is
  2059.                   24).
  2060.  
  2061.   \i              Turns on italic.*
  2062.  
  2063.   \outl           Turns on outline.*
  2064.  
  2065.   \revised        Indicates that text has been added since revision
  2066.                   marking was turned on.
  2067.  
  2068.   \scaps          Turns on small capitals.*
  2069.  
  2070.   \shad           Turns on shadow.*
  2071.  
  2072.   \strike         Turns on strikethrough.
  2073.  
  2074.   \ul             Turns on continuous underline. \ul0 turns off all
  2075.                   underlining.
  2076.  
  2077.   \uld            Turns on dotted underline.
  2078.  
  2079.   \uldb           Turns on double underline.
  2080.  
  2081.   \ulnone         Turns off all underlining.
  2082.  
  2083.   \ulw            Turns on word underline.
  2084.  
  2085.   \up<N>          Sets the superscript position in half-points (the
  2086.                   default is 6).
  2087.  
  2088.   \v              Turns on hidden text.*
  2089.  
  2090.   \lang<N>        Applies a language to a character. <N> is a number
  2091.                   corresponding to a language. The following table
  2092.                   defines the standard languages used by Microsoft.
  2093.                   This table was generated by the Unicode group for
  2094.                   use with TrueType(R) and Unicode. A \plain control
  2095.                   resets the language property to the language defined
  2096.                   by \deflang<N> in the document properties.
  2097.  
  2098.   Language Name             Language ID
  2099.   -------------             -----------
  2100.                            
  2101.   No Language               0x0400
  2102.   Albanian                  0x041c
  2103.   Arabic                    0x0401
  2104.   Bahasa                    0x0421
  2105.   Belgian Dutch             0x0813
  2106.   Belgian French            0x080c
  2107.   Brazilian Portuguese      0x0416
  2108.   Bulgarian                 0x0402
  2109.   Catalan                   0x0403
  2110.   Croato-Serbian (Latin)    0x041a
  2111.   Czech                     0x0405
  2112.   Danish                    0x0406
  2113.   Dutch                     0x0413
  2114.   English (Aus.)            0x0c09
  2115.   English (U.K.)            0x0809
  2116.   English (U.S.)            0x0409
  2117.   Finnish                   0x040b
  2118.   French                    0x040c
  2119.   French (Canadian)         0x0c0c
  2120.   German                    0x0407
  2121.   Greek                     0x0408
  2122.   Hebrew                    0x040d
  2123.   Hungarian                 0x040e
  2124.   Icelandic                 0x040f
  2125.   Italian                   0x0410
  2126.   Japanese                  0x0411
  2127.   Korean                    0x0412
  2128.   Norwegian (Bokmal)        0x0414
  2129.   Norwegian (Nynorsk)       0x0814
  2130.   Polish                    0x0415
  2131.   Portuguese                0x0816
  2132.   Rhaeto-Romanic            0x0417
  2133.   Romanian                  0x0418
  2134.   Russian                   0x0419
  2135.   Serbo-Croatian (Cyrillic) 0x081a
  2136.   Simplified Chinese        0x0804
  2137.   Slovak                    0x041b
  2138.   Spanish (Castilian)       0x040a
  2139.   Spanish (Mexican)         0x080a
  2140.   Swedish                   0x041d
  2141.   Swiss French              0x100c
  2142.   Swiss German              0x0807
  2143.   Swiss Italian             0x0810
  2144.   Thai                      0x041e
  2145.   Traditional Chinese       0x0404
  2146.   Turkish                   0x041f
  2147.   Urdu                      0x0420
  2148.  
  2149. To read negative \expnd values from Word for the Macintosh, an RTF
  2150. reader should use only the low-order 6 bits of the value read. Word
  2151. for the Macintosh does not emit negative values for \expnd. Instead,
  2152. it treats values from 57 through 63 as -7 through -1, respectively
  2153. (the low-order 6 bits of 57 through 63 are the same as -7 through 1).
  2154.  
  2155.  
  2156. SPECIAL CHARACTERS
  2157. ==================
  2158.  
  2159. The RTF standard includes control words for special characters. If a
  2160. special character control word is not recognized by the RTF reader,
  2161. the control word is ignored, and the text following it is considered
  2162. plain text. The RTF specification is flexible enough to allow new
  2163. special characters to be added for interchange with other software.
  2164.  
  2165. The special RTF characters are listed in the following table:
  2166.  
  2167.   Control Word    Meaning
  2168.   ------------    -------
  2169.                  
  2170.   \chdate         The current date (as in headers).
  2171.  
  2172.   \chdpl          The current date in long format; for example,
  2173.                   Tuesday, June 28, 1992.
  2174.  
  2175.   \chdpa          The current date in abbreviated format; for example,
  2176.                   Tue, Jun 28, 1992.
  2177.  
  2178.   \chtime         The current time (as in headers).
  2179.  
  2180.   \chpgn          The current page number (as in headers).
  2181.  
  2182.   \chftn          An automatic footnote reference (the footnotes
  2183.                   follow in a group).
  2184.  
  2185.   \chatn          An annotation reference (the annotation text follows
  2186.                   in a group).
  2187.  
  2188.   \chftnsep       An anchoring character for the footnote separator.
  2189.  
  2190.   \chftnsepc      An anchoring character for the footnote
  2191.                   continuation.
  2192.  
  2193.   \cell           The end of a table cell.
  2194.  
  2195.   \row            The end of a table row.
  2196.  
  2197.   \par            The end of a paragraph.
  2198.  
  2199.   \sect           The end of a section and a paragraph.
  2200.  
  2201.   \page           A required page break.
  2202.  
  2203.   \column         A required column break.
  2204.  
  2205.   \line           A required line break (no paragraph break).
  2206.  
  2207.   \tab            A tab character; the same as ASCII 9.
  2208.  
  2209.   \emdash         An em (--) dash. This is character 151 in the ANSI
  2210.                   character set and character 208 in the Macintosh
  2211.                   character set.
  2212.  
  2213.   \endash         An en (-) dash. This is character 150 in the ANSI
  2214.                   character set and character 209 in the Macintosh
  2215.                   character set.
  2216.  
  2217.   \bullet         A bullet character. This is character 149 in the
  2218.                   ANSI character set and character 165 in the
  2219.                   Macintosh character set.
  2220.  
  2221.   \lquote         An opening single quotation mark. This is character
  2222.                   145 in the ANSI character set and character 212 in
  2223.                   the Macintosh character set.
  2224.  
  2225.   \rquote         A closing single quotation mark. This is character
  2226.                   146 in the ANSI character set and character 213 in
  2227.                   the Macintosh character set.
  2228.  
  2229.   \ldblquote      An opening double quotation mark. This is character
  2230.                   147 in the ANSI character set and character 210 in
  2231.                   the Macintosh character set.
  2232.  
  2233.   \rdblquote      A closing double quotation mark. This is character
  2234.                   148 in the ANSI character set and character 211 in
  2235.                   the Macintosh character set.
  2236.  
  2237.   \|              A formula character.
  2238.  
  2239.   \~              A nonbreaking space.
  2240.  
  2241.   \-              An optional hyphen.
  2242.  
  2243.   \_              A nonbreaking hyphen.
  2244.  
  2245.   \:              Specifies a subentry in an index entry.
  2246.  
  2247.   \*              Marks a destination whose text should be ignored if
  2248.                   not understood by the RTF reader.
  2249.  
  2250.   \'hh            A hexadecimal value, based on the specified
  2251.                   character set (may be used to identify 8-bit
  2252.                   values).
  2253.  
  2254.   \alt            The ALT modifier key. Used to describe shortcut-key
  2255.                   codes for styles.
  2256.  
  2257.   \shift          The SHIFT modifier key. Used to describe shortcut-
  2258.                   key codes for styles.
  2259.  
  2260.   \ctrl           The CTRL modifier key. Used to describe shortcut-key
  2261.                   codes for styles.
  2262.  
  2263.                   Specifies a function key where <N> is the function
  2264.                   key number. Used to describe shortcut-key codes for
  2265.                   styles.
  2266.  
  2267.     NOTE: An ASCII 9 is accepted as a tab character. A carriage return
  2268.     (character value 13) or linefeed character (character value 10)
  2269.     will be treated as a \par control if the character is preceded by
  2270.     a backslash. You must include the backslash, or RTF ignores the
  2271.     control word. (You may also want to insert a carriage-
  2272.     return/linefeed pair without backslashes at least every 255
  2273.     characters for better text transmission over communication lines.)
  2274.  
  2275.  
  2276.